package com.gthncz.mbg.pojo;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Component;

import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Component
public class AuthRoleUser implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private Long id;
    
	@ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    @JsonIgnore
    private String password;
    
    @ApiModelProperty(value = "用户权限")
    private List<TbAuth> auths;
    
    @ApiModelProperty(value = "用户角色")
    private List<TbRole> roles;

}
